#ifndef TRIDES_H_INCLUDED
#define TRIDES_H_INCLUDED

#include <string>
#include "./DES.h"

using namespace std;

class TriDES{
public:
    static string encrypt(string content, string key){
        DES step1(content,key);
        DES step2(step1.getCiphertext(),key);
        DES step3(step2.getExplicitly(),key);
        return step3.getCiphertext();
    }
    static string decrypt(string content, string key){
        DES step1(content,key);
        DES step2(step1.getExplicitly(),key);
        DES step3(step2.getCiphertext(),key);
        return step3.getExplicitly();
    }
};

#endif // TRIDES_H_INCLUDED
